﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace TodoApp.TMS_personnelmatters.Positions
{
    /// <summary>
    /// 转正表
    /// </summary>
    public class TMS_Positive : BasicAggregateRoot<Guid>
    {
        /// <summary>
        /// 部门id
        /// </summary>
        [Required(ErrorMessage = ("部门不能为空"))]
        [StringLength(150)]
        public string Department_Id { get; set; }
        /// <summary>
        /// 职位id
        /// </summary>
        [Required(ErrorMessage = ("职位不能为空"))]
        [StringLength(150)]
        public string Position_Id { get; set; }
        /// <summary>
        /// 员工id
        /// </summary>
        [Required(ErrorMessage = ("员工不能为空"))]
        [StringLength(150)]
        public string Employees_Id { get; set; }
        /// <summary>
        /// 上级负责人
        /// </summary>
        [Required(ErrorMessage = ("上级负责人不能为空"))]
        [StringLength(150)]
        public string SuperiorResponsiblePerson { get; set; }
        /// <summary>
        /// 入职日期
        /// </summary>
        [Required(ErrorMessage = ("入职日期不能为空"))]
        public DateTime Positive_InductionDate { get; set; }
        /// <summary>
        /// 申请日期
        /// </summary>
        [Required(ErrorMessage = ("申请日期不能为空"))]
        public DateTime Positive_Date { get; set; }
        /// <summary>
        /// 试用期总结
        /// </summary>
        [Required(ErrorMessage = ("试用期总结不能为空"))]
        [StringLength(300)]
        public string Positive_Conclusion { get; set; }
        /// <summary>
        /// 对公司的意见和建议
        /// </summary>
        [StringLength(200)]
        public string Positive_Advice { get; set; }
        /// <summary>
        /// 审批人
        /// </summary>
        [StringLength(150)]
        public string Positive_Approver { get; set; }
        /// <summary>
        /// 转正状态
        /// </summary>
        public int Positive_State { get; set; } = 1;
        /// <summary>
        /// 删除
        /// </summary>
        public bool Positive_Delete { get; set; } = true;
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime Positive_DateTime { get; set; } = DateTime.Now;
    }
}
